#陈祥润
def add(n,m):
    n.extend(m)
    return n


def de(a):
    a=a.replace(" ","")
    return a


def qp(a):
    a1 = eval(input("请输入第一个索引："))
    a2 = eval(input("请输入最后一个索引："))
    return a[a1:a2]

if __name__ == "__main__":
    n=[1,2,3]
    m=[4,5,6]
    a="1 2 3 "
    print(add(n,m))
    print(de(a))
    print(qp(a))